|
|
@@ -120,10 +120,10 @@ public class SessionInteractor implements Callback{
|
120
|
120
|
int status = intent.getIntExtra(EXTRA_STATUS_PART,0);
|
121
|
121
|
if(status==MSG_CAMERA_INIT_SUCCESS){
|
122
|
122
|
listener.onSessionStartSuccess(sessionBean.sessionId);
|
123
|
|
- listener.onCameraStatusChanged("camera init success");
|
|
123
|
+ listener.onCameraStatusChanged("相机已准备好,可以开始拍摄");
|
124
|
124
|
startCapture();
|
125
|
125
|
}else if(status == MSG_CAMERA_CONN_ERROR){
|
126
|
|
- listener.onCameraStatusChanged("camera connection error");
|
|
126
|
+ listener.onCameraStatusChanged("未就绪,请检查相机是否打开或线缆是否松动");
|
127
|
127
|
listener.onSessionStartError(sessionBean.sessionId);
|
128
|
128
|
mHandler.sendEmptyMessageDelayed(MSG_RETRY_INIT_CAMERA,3000);
|
129
|
129
|
}else if(status == MSG_SDCARD_ERROR){
|
|
|
@@ -132,7 +132,7 @@ public class SessionInteractor implements Callback{
|
132
|
132
|
}else if(status == MSG_CAMERA_NEW_PHOTO_FOUND){
|
133
|
133
|
String eventMsg = intent.getStringExtra(EXTRA_DATA_PART);
|
134
|
134
|
LogHelper.d(TAG,"fetchPhotoTask new photo found");
|
135
|
|
- listener.onCameraStatusChanged("camera new Photo found "+eventMsg);
|
|
135
|
+ listener.onCameraStatusChanged("收到新照片"+eventMsg);
|
136
|
136
|
PhotoBean bean = new PhotoBean();
|
137
|
137
|
bean.photoName = eventMsg;
|
138
|
138
|
bean.photoId = Long.parseLong(eventMsg.substring(0,eventMsg.lastIndexOf(".")));
|